/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-12-01     Administrator       the first version
 */
#ifndef  _PWM_H_
#define  _PWM_H_

#define PWM_DEV_NAME        "t5pwm"  /* PWM设备名称 */
#define PWM_DEV_CHANNEL     1       /* PWM通道 */


#define PWM_DEV_NAME0        "lpwm2"  /* PWM设备名称 */
#define PWM_DEV_CHANNEL0     3      /* PWM通道 */

extern rt_uint8_t pwm_data;

void PWM_Thread_Entry(void *para);
void Pwm_Init(void);
void pwm_out_adj(rt_uint32_t period, rt_uint32_t pulse);
void pwm_vout_adj(rt_uint32_t pulse,rt_bool_t sw);
//int PWM_Thread_Entry(int argc, char *argv[]);
#endif /* APPLICATIONS_PWM_H_ */
